package com.company;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class system {
    private JButton 寝室分配Button;
    private JButton 学生管理Button;
    private JButton 出入登记Button;
    private JButton 系统管理Button;
    private JButton 财产管理Button;
    private JButton 信息查询Button;
    private JPanel panel1;

    public system() {
        JFrame sys=new JFrame("系统管理");
        sys.setSize(400,400);
        sys.add(panel1);
        sys.setLocation(400,250);
        sys.setVisible(true);
        寝室分配Button.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new qinshi();
            }
        });
        学生管理Button.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new stusys();
            }
        });
        信息查询Button.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new prosys();
            }
        });
        财产管理Button.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new monsys();
            }
        });
        出入登记Button.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new chursys();
            }
        });
        系统管理Button.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                new syssys();
            }
        });
    }
    public static void main(String[] args) {
        system sy=new system();
    }

}
